package com.ctbu;


import com.ctbu.configure.NacosSameClusterConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
//开启自定义负载均衡设置
@LoadBalancerClients(defaultConfiguration = NacosSameClusterConfiguration.class)
//指定使用自定义负载均衡的实例
//@LoadBalancerClient(name = "bank-service",configuration = {NacosSameClusterConfiguration.class})
//开启feign支持
@EnableFeignClients
public class UserInfoApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserInfoApplication.class);
    }



}
